import type { XtxGuessInstance } from "@/types/component"
import { ref } from "vue"


export const useGuessList = () => {
  // 获取猜你喜欢的组件实例
  const guessRef = ref<XtxGuessInstance>()
  //  滚动触底的回调
  const onScrollToLower = async () => {
    const res = await guessRef.value?.getmore()
  }

  //返回ref和事件处理函数
  return {
    guessRef,
    onScrollToLower,
  }
}
